package baseFx.tests.common.config.propertiesFile;

import baseFx.common.Env;
import baseFx.common.config.ConfigReader;
import baseFx.common.config.impl.PropertiesFileReader;

import java.util.Scanner;

public class RunPropertiesFileReader {
    public static void main(String[] args) {
        Env.setMainClass(RunPropertiesFileReader.class);
        ConfigReader reader = new PropertiesFileReader("/app");
        Scanner scanner = new Scanner(System.in);
        while ("0".equals(scanner.nextLine()) == false) {
            for (String name : reader.getNames("config.test")) {
                System.out.println(name + " = " + reader.read("config.test", name));
            }
        }
        System.exit(-1);
    }
}
